<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>Flaskr</title>
    <link rel="stylesheet" href="{{ url_for("static",filename="style.css") }}"/>
</head>
<body>
<div class="page">
    <h1>Flaskr</h1>

    <div class="metanav">
        {% if not session.logged_in %}
            <a href="{{ url_for("login") }}">login</a>
        {% else %}
            <a href="{{ url_for("logout") }}">logout</a>
        {% endif %}
    </div>
    {% for message in get_flashed_messages() %}
        <div class="flash">{{ message }}</div>
    {% endfor %}
    {% block body %}{% endblock %}
</div>
</body>
</html>